
#include "jncInterface.h"


#define REPEAT(z, n, data) jncTypev BOOST_PP_CAT(v, n)
std::vector<jncTypev> collectArg(BOOST_PP_ENUM(BOOST_PP_DEC(JINC_MAX_ARG), REPEAT, ~)) {
  std::vector<jncTypev> arg(BOOST_PP_DEC(JINC_MAX_ARG));		
  COLLECTARG
    return arg;
}

int getValidArg(std::vector<jncTypev>& x) {
  for(int i = 0; i < x.size(); i++)					
    {									
      if(x[i].empty())						
	return i;
      else								
	continue;							
    }									
}


const char* getTypeName(jncTypev& v) {
  return v.type().name(); // Can't Use type inside macro (formal paramater)
}
